import store from "../../store"
export let Become=()=>{
    
    store.subscribe(()=>{
        let i = 0;
        let newarr=[];
        if(store.getState().indexReducer.state){
            store.getState().indexReducer.state.forEach((item,index)=>{
                if(item.kind.split(",")[1] === this.props.kind){
                    newarr.push(item);
                    
                }else{
                    if(item.id != 10){
                        newarr.push(item);
                        i++;
                    }else{
                        return;
                    }
                }
                this.setState({
                    swiperListInfo:newarr
                },()=>{
                    console.log(this.state.swiperListInfo)
                })
                console.log(item.kind.split(",")[1])
            })
        }else{
            console.log("无数据");
        }
    })
}
